import "package:ct_pa_majordomo/utils/request.dart";
import "package:dio/dio.dart";

class WaterElectricitySettingApi {

  /* 修改水电配置信息 */
  Future<Map> editConfig(data) async {
    Response response = await request.put(
      "apartment/water-electricity-config",
      data: data,
    );
    return response.data ?? {};
  }

  /* 获取水电配置信息*/
  Future<Map> getConfigInfo() async {
    Response response = await request.get(
      "apartment/water-electricity-config",
    );
    return response.data ?? {};
  }

} 

WaterElectricitySettingApi waterElectricitySettingApi = WaterElectricitySettingApi();